package com.white.loggerserver.room

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.white.loggerserver.widget.MySpinner

/**
 * Created by ytf on 2020/08/07.
 * Description:
 */

@Entity(tableName = MyRoomDb.styleTableName)
data class StyleConfig(
    @PrimaryKey(autoGenerate = true)
    var id : Long?,
    @ColumnInfo var tagName : String,
    @ColumnInfo var fontSize : Int,
    @ColumnInfo var fontColor : Int,
    @ColumnInfo var bgColor : Int) : MySpinner.INameProvider {

    override fun getStr(): String {
        return tagName
    }
}